<?php
/**
 * +----------------------------------------------------------------------
 * | [ DO WHAT YOU LOVE AND FUCK THE REST ]
 * +----------------------------------------------------------------------
 * | EMAIL: < 931274989@qq.com >
 * +----------------------------------------------------------------------
 * | WECHAT: xzc016
 * +----------------------------------------------------------------------
 * | 幻灯模型
 * +----------------------------------------------------------------------
 */
namespace app\index\model;

class IndexNav extends Base
{
  /**
   * 隐藏非必要数据
   */
  protected $hidden = ['update_time'];

  /**
   * 一对一关联图片模型
   */
  public function image()
  {
    return $this->belongsTo('Images','cover','id');
  }

}